//全局变量定义
var path = "http://www.gplcn.com:5984/lab/_design/relax/_view";
var searchpath = "http://www.gplcn.com:9200";

var currentpage = 1;
var pagesize = 10;

function changeTwoDecimal(x)
{
	var f_x = parseFloat(x);
	if (isNaN(f_x))
	{
	alert('function:changeTwoDecimal->parameter error');
	return false;
	}
	f_x = Math.round(f_x *100)/100;
	return f_x;
}

function YpM(str1, str2)
{
	if(str1 != undefined && str1 != "" && str2 != undefined && str2 != "")
		return str1 + "-" + str2;
	else
		return "";
}
